﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000A9 RID: 169
	internal class UInt16Int64 : IInt64Decoder
	{
		// Token: 0x060002AA RID: 682 RVA: 0x0000B83B File Offset: 0x00009C3B
		private UInt16Int64()
		{
		}

		// Token: 0x060002AB RID: 683 RVA: 0x0000B843 File Offset: 0x00009C43
		public long Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 3;
			return (long)((int)bytes[offset + 1] << 8 | (int)bytes[offset + 2]);
		}

		// Token: 0x040000CA RID: 202
		internal static readonly IInt64Decoder Instance = new UInt16Int64();
	}
}
